//
//  JPHttpManagerClass.h
//  JPShop
//
//  Created by 虎爷 on 2019/9/27.
//  Copyright © 2019 虎爷. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

NS_ASSUME_NONNULL_BEGIN

@interface GPRequsetManager : AFHTTPSessionManager
+(instancetype )HttpRequstManager;
typedef void(^successBlock)(NSInteger code,id result);
typedef void(^failBlock)(NSError *error);

-(void)PostURL:(NSString *)appendURl
        params:(NSDictionary *)params
       success:(successBlock)sucess
          fail:(failBlock)fail;

//用于金钱树的op传值
-(void)PostURL2:(NSString *)appendURl
         params:(NSDictionary *)params
        success:(successBlock)sucess
           fail:(failBlock)fail;

@end

NS_ASSUME_NONNULL_END
